package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysDictLanguage;
import com.ruoyi.system.domain.vo.SysDictLanguageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qy
 * @date 2023/3/17 14:11
 */
@Mapper
public interface SysDictLanguageMapper {

    int save(SysDictLanguage sysDictLanguage);
    int updateByDictCode(SysDictLanguage sysDictLanguage);

    List<SysDictLanguage> getByDictCode(Long dictCode);

    List<SysDictLanguageVo> getByDictCodesAndLanguageCode(@Param("dictCodes") List<Long> dictCodes,@Param("languageCode") String languageCode);

    int delete(@Param("dictCode") Long dictCode,@Param("type") String type);
}
